#include "informationdialog.h"
#include "ui_informationdialog.h"

InformationDialog::InformationDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::InformationDialog)
{
    ui->setupUi(this);
}

InformationDialog::~InformationDialog()
{
    delete ui;
}

void InformationDialog::setArmyName(const QString& name) {
    ui->armyName->setText(name);
}

void InformationDialog::setGameName(const QString& name) {
    ui->gameName->setText(name);
}

void InformationDialog::setArmyComments(const QString& comments) {
    ui->armyComments->setText(comments);
}

void InformationDialog::setGameComments(const QString& comments) {
    ui->gameComments->setText(comments);
}

void InformationDialog::setArmyVersionAndAuthor(const QString& version, const QString& author) {
    ui->armyVersionAuthor->setText(tr("%1 by %2").arg(version, author));
}

void InformationDialog::setGameVersionAndAuthor(const QString& version, const QString& author) {
    ui->gameVersionAuthor->setText(tr("%1 by %2").arg(version, author));
}

void InformationDialog::setArmyWebsite(const QString& website) {
    ui->armyWebsite->setText(website);
}

void InformationDialog::setGameWebsite(const QString& website) {
    ui->gameWebsite->setText(website);
}
